import clr

clr.AddReference('System.Windows.Forms')
clr.AddReference('System.Drawing')
 
from System.Windows.Forms import *
from System.Drawing import *

opisnapake = None
class MyForm(Form):
    
    def __init__(self):
        self.Text = 'Vnos opombe'
        self.TopMost = 1

        button = Button()
        button.Location = Point(188, 203)
        button.Text = 'Prilozi'
        button.Click += self.kliknil
        self.Controls.Add(button)

        textbox_opombe = TextBox()
        textbox_opombe.Location = Point(13, 13)
        textbox_opombe.Size = Size(250, 184)
        textbox_opombe.Text = 'Vnesi opombe ...'
        textbox_opombe.Multiline = 1
        self.Controls.Add(textbox_opombe)
         
        self.textbox_fajl = TextBox()
        self.textbox_fajl.Location = Point(12, 203)
        self.textbox_fajl.Size = Size(170, 20)
        self.Controls.Add(self.textbox_fajl)

    def kliknil(self, sender, args):
        dialogl = OpenFileDialog()
        if dialogl.ShowDialog() == DialogResult.OK:
            self.textbox_fajl.Text = dialogl.FileName

    def opis():
        return self.textbox_opombe.Content


